﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Tong;
public partial class Menu_Menu_AddNew : System.Web.UI.Page
{
    public String Asb_Path = TongUse.SysPath;
    public TongUse TextData = new TongUse(); 
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (classnameX.Value != "")//如果添加的数据名存在
            {
                SavePageData();
            }
        }
        catch
        {

        }
    }

    protected void SavePageData()
    {
       
            //添加记录
            TextData.SqlDataSave("Insert Into [TreeClass] (className,Intro,URl) values('" + classnameX.Value + "','" + introX.Value + "','" + urlX.Value + "') ");//添加新记录的语句
            TextData.Res.Response.Redirect("Menu_Show.aspx");
       

    }
}
